package com.weixx.provider.service;


import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;


//zookeeper: 服务注册与发现

@Service//注意这里是dubbo 的serviece 会被自动扫描注册
@Component//这里不使用@service是用完dubbo的注解和springboot注解重名
public class TicketServiceImpl implements TicketService{
    @Override
    public String getTicket() {
        return "《dubbo+zookeeper》";
    }
}
